from stark.service.stark import site
from crm_app import models
from crm_app.config.userinfo import UserInfoConfig
from crm_app.config.course import CourseConfig
from crm_app.config.school import SchoolConfig
from crm_app.config.class_list import ClassListConfig
from crm_app.config.depart import DepartmentConfig
from crm_app.config.customer import CustomerConfig, PublicCustomerConfig, PrivateCustomerConfig
from crm_app.config.consult_record import ConsultRecordConfig, PrivateConsultRecordConfig
from crm_app.config.student import StudentConfig
from crm_app.config.course_record import CourseRecordConfig
from crm_app.config.study_record import StudyRecordConfig


site.register(models.Department, DepartmentConfig)
site.register(models.UserInfo, UserInfoConfig)
site.register(models.Course, CourseConfig)
site.register(models.School, SchoolConfig)
site.register(models.ClassList, ClassListConfig)
site.register(models.Department, DepartmentConfig)
site.register(models.Customer, CustomerConfig)
site.register(models.Customer, PublicCustomerConfig, "pub")
site.register(models.Customer, PrivateCustomerConfig, "pri")
site.register(models.ConsultRecord, ConsultRecordConfig)
site.register(models.ConsultRecord, PrivateConsultRecordConfig, "pri")
site.register(models.Student, StudentConfig)
site.register(models.CourseRecord, CourseRecordConfig)
site.register(models.StudyRecord, StudyRecordConfig)